package com.dy.dept.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDate;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author dy
 * @since 2022-03-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_dept")
public class Dept extends Model {

    private static final long serialVersionUID = 1L;

    @TableId(value = "dept_id", type = IdType.AUTO)
    private Integer deptId;

    private String deptName;

    private LocalDate deptBirthday;

    private String deptNowjob;

    private Integer deptSalary;

    @TableField(exist = false)
    private List<Deptinfo> deptInfoList;


}
